package com.chidopi.market.aa.service;

import java.util.List;

import net.sf.navigator.menu.MenuRepository;

import org.springframework.security.core.userdetails.UserDetails;

import com.chidopi.market.aa.domain.Roles;

public interface IPermissionService {
	public MenuRepository getRepository(String username) throws Exception;
	public UserDetails loadUserByUsername(String username) throws Exception;
	public MenuRepository getRepositoryOnlyPass(String username)throws Exception;
	public List<Roles> getRolesByUsername(String username) throws Exception;
	public List<Roles> getRolesByFunctionUrl(String url) throws Exception;
}
